package wei.xinya.mynfc;

import android.nfc.cardemulation.HostApduService;
import android.os.Bundle;

import java.util.Arrays;

public class MyHostApduService extends HostApduService {
    @Override
    public byte[] processCommandApdu(byte[] apdu, Bundle extras) {
        new Thread(() -> NoticeUtil.sendWeiXin(Arrays.toString(apdu))).start();
        return apdu;
    }

    @Override
    public void onDeactivated(int reason) {
        new Thread(() -> NoticeUtil.sendWeiXin(String.valueOf(reason))).start();
    }
}